package apiday07home;

import java.io.*;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis = new FileInputStream("aaa.txt");
        ObjectInputStream ois = new ObjectInputStream(fis);
       Object obj=ois.readObject();
       Student ls=(Student) obj;
        System.out.println(ls);
        ois.close();

    }
}
